<% if @login_user.is_vip == NO && !Profile.find_by_user_id(@login_user) %>
<div id="vip">	
	<!--显示升级流程-->		
	<div class="regsteps">
		<%@text = @login_user.role == DESIGNER ? "创意宝" : "创意寻"%>
		<p>升级为<%=@text%>vip用户步骤</p>
		<ul class="num3">
			<li class="current"><span>1.完善企业信息</span></li>
			<li><span>2.网站审核(2-5个工作日)</span></li>
			<li><span>3.站内信通知结果</span></li>
		</ul>
	</div>		
			<div class="form">
				<% form_for :profile, :html => { :class => "form_vip", :multipart => true } do|f| %>
					<%= text_field_for f, :reg_no, @profile, { :text => "工商注册号", :required => true } %>
					<%= text_field_for f, :auth_no, @profile, { :text => "授权号", :required => true } %>
					<div class="required">
						<div class="form_text"><label class="label" for="pic">上传营业执照</label><span class="required_mark">*</span></div>
						<%= f.file_field :license %>
						<%= error_message_on @profile, :license_file_name -%>
						<%= error_message_on @profile, :license_file_size -%>
						<%= error_message_on @profile, :license_content_type%>
					</div>
					<%= text_field_for f, :name, @profile, { :text => "您的姓名", :required => true } %>
					<%= text_field_for f, :department, @profile, { :text => "您的部门" } %>
					<%= text_field_for f, :company, @profile, { :text=>"公司名称", :required => true } %>
					<div class="required">
						<div class="form_text">
							<label for="address" class="label">公司所在地</label>
							<span class="required_mark">*</span>
						</div>
						<div>
							<span>
								<%= f.collection_select :pid, Province.all, :provinceid, :province,
														{ :prompt => "请选择" },
														{ :onchange => "
															#{remote_function( :url => {:controller =>'admin/profile', :action => 'gain_cities'},
																				:with => "'province_id='+value",
																				:complete => "$('#area').hide()",
																				:update => 'city')
															 }"
													     }%>
							</span>										  
							<span id="city"></span>	
							<span id="area"></span>
							<%= error_div(@profile,:pid,"公司所在地")%>		
						</div>											  
					</div>
					<%= text_field_for f, :com_full_address, @profile,{ :text => "公司详细地址", :required => true } %>
					<%= text_field_for f, :zip_code, @profile, { :text => "邮政编码", :required => true } %>
					<%= text_field_for f, :tel, @profile, { :text => "固定电话", :required => true } %>
					<%= text_field_for f, :mobile, @profile, { :text => "移动电话", :required => true } %>
					<%= text_field_for f, :fax, @profile, { :text => "传真" } %>
					<%= text_field_for f, :email, @profile, { :text => "公司邮箱" } %>
					<%= text_field_for f, :qq, @profile, { :text => "QQ" } %>
					<div class="submit">
						<%= submit_tag "同意以上协议提交注册"%>
					</div>
				<% end %>
			</div>
</div>
<% elsif Profile.find_by_user_id(@login_user) %>
<p>您的信息正在审核中，请耐心等待，我们将在3-5个工作日给与您答复，详情请垂询0571-88888888，或发email至noreply@fendu.cn</p>
<% else %>
<p>您已经是会员，不需要升级</p>
<% end %>	